package com.fuyun.microservice.codec.msg;


public class Header {
    private static final long serialVersionUID = -3059342529838994125L;
    private short commandId;
    private short bodyLength;
    private long sequenceNo;

    public void setBodyLength(short length) {
        this.bodyLength = length;
    }

    public short getBodyLength() {
        return bodyLength;
    }

    public void setCommandId(short commandId) {
        this.commandId = commandId;
    }

    public short getCommandId() {
        return commandId;
    }

    public long getSequenceNo() {
        return sequenceNo;
    }

    public void setSequenceNo(long sequenceNo) {
        this.sequenceNo = sequenceNo;
    }

    @Override
    public String toString() {
        return "Header{" +
                "commandId=" + commandId +
                ", bodyLength=" + bodyLength +
                ", sequenceNo=" + sequenceNo +
                '}';
    }
}
